package adapter;

/**
 * @author: Alexander Martyushov
 */
public class TurkeyAdapter implements Duck {

    Turkey turkey;

    public TurkeyAdapter(Turkey turkey){
        this.turkey = turkey;
    }


    public void quak() {
        turkey.gobble();

    }

    public void fly() {
        for (int i=0; i<5; i++){
            turkey.fly();
        }
    }
}
